package org.dromara.genealogy.domain;

import jakarta.validation.constraints.NotNull;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 目录管理对象 ge_directory
 *
 * @author qianjm
 * @date 2025-08-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("ge_directory")
public class GeDirectory extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 目录code
     */
    private String code;

    /**
     * 目录名称
     */
    private String name;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableLogic
    private String delFlag;

    /**
     * 族谱id
     */
    private Long geId;


    /**
     * 排序值
     */
    private int sorted;

    /**
     * 父级id
     */
    private Long parentId;
}
